#define  _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int Max(int* pa)
{
	int i = 0;
	for (i = 0; i < 9; i++)
	{
		int tmp = 0;
		if (pa[i] > pa[i + 1])
		{
			tmp = pa[i];
			pa[i] = pa[i +1];
			pa[i + 1] = tmp;
		}
	}

	return *(pa + 9);
}
int main()
{
	int arr[10] = { 1,2,3,4,80,6,7,8,9,10 };
	int ret = 0;
	ret = Max(arr);
	printf("%d\n",ret);

	return 0;
}